﻿using System;
using System.Collections.Generic;
using T.FAS.Action.Dev.Entity;
using Teld.Core.Database.Service;

namespace T.FAS.Action.Dev.Dao
{
    public class ActionDevLogic : IActionDevDao
    {
        IActionDevDao actionMetaDataDao = DaoFactory.GetDaoFactory<IActionDevDao>().Instance;

        public List<ActionMetaDataView> GetActionMetaDataViewsByFilter(Dictionary<string,string> filter)
        {
            return actionMetaDataDao.GetActionMetaDataViewsByFilter(filter);
        }
        public ActionMetaDataView GetActionMetaDataViewByID(string id)
        {
            return actionMetaDataDao.GetActionMetaDataViewByID(id);
        }
        public int GetActionMetaDataViewsCountByFilter(Dictionary<string, string> filter)
        {
            return actionMetaDataDao.GetActionMetaDataViewsCountByFilter(filter);
        }
        public List<ActionParamsView> GetActionMetaDataMethodParamViewByActionId(string id)
        {
            return actionMetaDataDao.GetActionMetaDataMethodParamViewByActionId(id);
        }
    }
}
